"""
with上下文管理
"""
with open(r"code_IO_file\withTest.txt","w",encoding="utf-8") as f:
    a = 3/0
    f.write(str(a))